package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-07-24
 * @description:扫码信息表
 **/

@Entity
@Table(name = "t_code_info")
public class CodeInfo extends TraceEntity {

    //应用
    @Column(name = "app_id")
    private String appId;

    /**
     * 分包批次
     */
    @Column(name = "code", length = 30)
    private String code;

    /**
     * 批次号，
     */
    @Column(name = "batch_no", length = 30)
    private String batchNo;

    /**
     * 追溯信息
     */
    @Lob
    @Column(name = "content")
    private String content;

    /**
     * 分支点,步骤名称
     */
    @Column(name = "branch", length = 20)
    private String branch;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    @Override
    public String toString() {
        return "CodeInfo{" +
                "appId='" + appId + '\'' +
                ", code='" + code + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
